package com.dong.demo;

public class PointTest {
    public static void main(String[] args) {
        Point p = new Point(3, 4);
        Point p1 = new Point(5, 6);
        p.setXY(7,8);
        System.out.println(p.getDis(p1));
        System.out.println("p1和p2的正弦值:"+p.getSin(p1));
        System.out.println("p1和p2的余弦值:"+p.getCos(p1));
        //Point p;//声明了point类型的变量,存放的是对象的地址信息
       // p=new Point(3,4);//创建对象，并且对象地址赋值给p
        //System.out.println(p.getX());

    }
}
